import { View } from "../../../../mvc/core/View";
import { LayerManager } from "../../../manager/LayerManager";
import { ObjCreate } from "../../common/ObjCreate";
import { ResFileConst } from "../../../resource/ResFileConst";
import { EffectManager } from "../../../manager/EffectManager";
import { GLoadedButton } from "../../../../../com/mui/controls/GLoadedButton";
import { LineBox } from "../../guide/LineBox";
//class SixtyCopySmeltButton
    
    export  class SixtyCopySmeltButton extends View
    {
        constructor()
        {
            super();
            this.layer = LayerManager.uiLayer;
            this._smeltMinimize = ObjCreate.createGLoadedButton(ResFileConst.SixtyCopySmeltBtn, 0, 0, 54, 47, this);
            return;
        }

        public addGuide(): void
        {
            this._lineBox = EffectManager.getLineBox(this._smeltMinimize.width, this._smeltMinimize.height);
            this._lineBox.x = this._smeltMinimize.x;
            this._lineBox.y = this._smeltMinimize.y;
            this.addChild(this._lineBox);
            return;
        }

        public removeGuide(): void
        {
            if (this._lineBox) 
            {
                EffectManager.disposeLineBox(this._lineBox);
            }
            return;
        }

        /* internal */ /* var */_smeltMinimize: GLoadedButton;

        /* internal */ /* var */_lineBox: LineBox;
    }
